package com.yaorange.jxc.goods.controller;

import com.yaorange.jxc.goods.entity.Goods;
import com.yaorange.jxc.goods.entity.GoodsType;

import com.yaorange.jxc.goods.service.GoodsTypeService1;
import org.jeecg.common.api.vo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @description:
 * @company: yaorange
 * @author: wu YanZu
 * @version: 1.0
 * @create: 2022-04-27 15:11:47
 */
@RestController
@RequestMapping("/goodsType")
public class GoodsTypeController {
    @Autowired
    private GoodsTypeService1 goodsTypeService;

    @PostMapping("/loadGoodsType")
    public Result<?> findGoodTypeList(){
        List<GoodsType> goodsTypeList = goodsTypeService.findGoodsTypeList();
        return Result.OK("查询成功",goodsTypeList);
    }

}
